//package com.bitejiuyeke.bitegateway;
//
//
//import com.bitejiuyeke.bitecommondomain.domain.ResultCode;
//import com.bitejiuyeke.bitecommondomain.exception.ServiceException;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.cloud.gateway.filter.GatewayFilterChain;
//import org.springframework.cloud.gateway.filter.GlobalFilter;
//import org.springframework.stereotype.Component;
//import org.springframework.web.server.ServerWebExchange;
//import reactor.core.publisher.Mono;
//
//@Component
//@Slf4j
//public class TestFilter implements GlobalFilter {
//    @Override
//    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
//        throw new ServiceException(ResultCode.INVALID_CODE);
//    }
//}
